﻿@model Ornament.MemberShip.UserGroup
@{
    ViewBag.Title = "编辑:" + this.Model.Name;
    Layout = "~/Views/Shared/App.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset class="cssform">
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>
        @Html.HiddenFor(model => model.Id)
        <p>
            <input type="submit" value="保存" id="submit" />
            <input type="button" value="取消" id="cancel" />
        </p>
    </fieldset>
}
@section PageTitle{
    编辑:@this.Model.Name
}
@section Header{
    <script type="text/javascript">
        $(document).ready(function () {
            $("#submit").button();
            $("#cancel").button().click(function () {
                location = "../index";
            });
        });
    </script>
}
